package gui.components.map.objects;

import java.awt.Polygon;
import java.awt.Shape;

public class objConvoy extends objBasic {

	private static final long serialVersionUID = 1L;

	// Genearate object
	public void GenerateShape()
	{
		Polygon _objfrigate = new Polygon();
		_objfrigate.addPoint(0,3);
		_objfrigate.addPoint(0,0);
		_objfrigate.addPoint(6,0);
		_objfrigate.addPoint(6,3);
		_objfrigate.addPoint(6,0);
		_objfrigate.addPoint(0,0);
		_objfrigate.addPoint(0,3);
		
		_shape = _objfrigate;
	}
	
	public Shape GetShape() 
	{
		GenerateShape();
		return _shape;
	}
	
	public objConvoy()
	{
		SetType(objType.Convoy);
		GenerateShape();
	}
}

